package com.wzc.system.mapper;

import com.wzc.basic.mapper.BaseMapper;
import com.wzc.system.domain.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface RoleMapper extends BaseMapper<Role> {


    void saveRoleMenu(@Param("rid")Long id, @Param("menus")List<Long> menus);

    void saveRolePermission(@Param("rid")Long id, @Param("permissions")List<Long> permissions);

    void removeEmployeeByRoleId(Long id);

    void removePermissionByRoleId(Long id);

    void removeMenuByRoleId(Long id);
}
